package com.hellojava.dto;

/**
 * @author dengjihai
 * @create 2017-11-16
 **/
public class SysUserDto extends Dto implements ILoad {

    private String loginName;

    private String loginPass;

    public SysUserDto() {
    }

    public SysUserDto(String loginName, String loginPass) {
        this.loginName = loginName;
        this.loginPass = loginPass;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPass() {
        return loginPass;
    }

    public void setLoginPass(String loginPass) {
        this.loginPass = loginPass;
    }

    @Override
    public ILoad load(Object[] o) {
        return new SysUserDto(blankWhenNull(o[0]),blankWhenNull(o[1]));
    }
}
